"use strict";
console.log("bg.js loaded");
// 监听来自content-script的消息
chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {
  var a = request.method; //接受request提交的数据
  if (a == "getLocalstorage") {
    //已改为content.js中实现
    // chrome.storage.local.get(null, function (locals) {
    //   sendResponse(locals);
    //   return true;
    // });
  } else {
    sendResponse(a); //回复
    return true; //加了这句表示异步
  }
});
